package com.lglbc.provider;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 乐哥聊编程
 * @Doc 关注公众号"乐哥聊编程"获取文档和源码
 * @Date 2023/5/21
 * @Description
 */
@RestController
@RefreshScope
public class IndexController {

    @Value("${source}")
    private String source;
    @GetMapping("/source")
    public String hello(){
        return source;
    }
}
